import request from "./config.js"

// //get请求测试
// export const getTextInfo=()=>request({
//   url:'/api/test',
// })
// //post请求测试
// export const postTextInfo=(data)=>request({
//   url:'/api/test',
//   method:'post',
//   data
// })

export const topList=()=>request({
  url:'/toplist/detail',
})

export const list=(data)=>request({
  url:`/playlist/detail?id=${data.id}`,
})

export const songDetail=(data)=>request({
  url:`/song/detail?ids=${data.id}`,
})

export const songSimi=(data)=>request({
  url:`/simi/song?id=${data.id}`,
})

export const songComment=(data)=>request({
  url:`/comment/music?id=${data.id}`,
})

export const songLyric=(data)=>request({
  url:`/lyric?id=${data.id}`,
})

export const songUrl=(data)=>request({
  url:`/song/url?id=${data.id}`,
})

export const searchHot=()=>request({
  url:`/search/hot/detail`,
})

export const searchWord=(data)=>request({
  url:`/search?keywords=${data.word}`,
})

export const searchSuggest=(data)=>request({
  url:`/search/suggest?keywords=${data.word}&type=mobile`,
})